package com.tequila.core.dao;

import com.tequila.domain.dto.FileDto;
import com.tequila.domain.entity.File;
import com.tequila.domain.query.FileQuery;

import java.util.List;

public interface FileDao {
    File queryById(Long id);

    List<FileDto> queryByIdList(List<Long> idList);

    List<FileDto> queryListByParam(FileQuery query);

    List<FileDto> queryPageListByParam(FileQuery query);

    int queryPageCountByParam(FileQuery query);

    int insert(File entity);

    int insertSelective(File entity);

    int updateById(File param);

    int updateSelectiveById(File param);

    int deleteById(Long id);

    int deleteByIdList(List<Long> idList);
}